<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

//use Yii;
use yii\helpers\Html;
//use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use mobile\controllers\ListController;
use backend\controllers\CategoryController;
use common\models\category\Category;
use common\models\fenhuigrade\Fenhuigrade;
use common\models\setting\Setting;
use common\models\Ad\AdPosition;
use common\models\Ad\Ad;


?>
<?php 
$data = Category::find()->where(['status' => 1, 'parent_id' => 0])->asArray()->all();
$cats = Category::catlist();
$guanggao = Ad::find()->where(['position_id'=>6])->asArray()->all();//首页banner广告位
$morenguang = Ad::find()->where(['position_id'=>9])->one();//首页banner默认广告位
$fg = Fenhuigrade::find()->where(['status' => 10])->asArray()->all();
$imgLOGO = '';
try { $imgLOGO = Setting::findOne(['code'=>'mobile'])->value;}
catch(ErrorException $e){ }
//网站名称
$name = '';
try
{ $name = Setting::findOne(['code'=>'siteName'])->value;}
catch(ErrorException $e) { }
$fenhuio = Fenhuigrade::find()->where(['status'=>10])->one();
?>
<?php 
$data = Category::find()->where(['status' => 1, 'parent_id' => 0])->asArray()->all();
$cats = Category::catlist();
$fenhuio = Fenhuigrade::find()->where(['status'=>10])->one();
?>

<div class="wapper">
    <!--header-->
    <div class="hearder bag-fff">
        <div class="clearFloat m-l-35 m-r-35 p-t-10 p-b-10 relative">
            <div class="logo">
                <a href="#"><img src="<?= Yii::$app->params['setshow'];?><?= $imgLOGO;?>" alt=""></a>
            </div>
            <div class="henav">
                <a href="#" class="navicon"><img src="../../images/navicon.png" alt=""></a>
                <a href="#"><img src="../../images/gricon.png" alt=""></a>
            </div>
        </div>
    </div>
    <!--nav-->
    <div class="nav">
        <div class="navwidt m-l-35 m-r-35">
            <ul class="clearFloat">
                <li>
                    <a href="/xiehuijs/index/1">协会介绍 </a>
                </li>
                <li>
                    <a href="/list/news/2">新闻动态 </a>
                </li>
                <li>
                    <a href="/list/news/4">成为会员 </a>
                </li>
                <li>
                    <a href="/list/news/5">会议展览 </a>
                </li>
                <li>
                    <a href="/list/news/24">信用评价 </a>
                </li>
                <li>
                    <a href="/list/news/29">培训比赛 </a>
                </li>
                <li>
                    <a href="/list/news/33">扶优扶强 </a>
                </li>
                <li>
                    <a href="/xiehuijs/index/82">联系我们 </a>
                </li>
            </ul>
        </div>
    </div>
    <!--nav end-->
    <!--header end-->
